how to customize windows 10 image

env:windows server 2012R2, virtualbox.

  1. make a pe.iso.

  2. perform windows installation normally in virtualbox until creating account.

  3. press ctrl+shift+f3, enter the audit mode.

  4. after softwares installed, backup windows 10 with virtualbox.

  5. sysprep–oobe–generalize–shutdown–ok

  6. in virtualbox, switch cd to pe.iso and configure network adapter to work in bridged mode, boot windows 10 and press f2 into boot manager, choose boot from cd.

  7. in winpe, input:

    net use z: \\share\Public\chenshi /user:chenshi.net\chenshi chenshi
    dism.exe /Capture-Image /ImageFile:Z:\install.wim /CaptureDir:C:\ /Name:chenshi
    

    if exist net use error:system error 67, check your virtualbox bridged mode.

  8. the end, upload install.wim to WDS and installation from PXE boot in the vmware of client.